import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
var _excluded = ["detailData", "title", "modalVisible"];

var _dec, _class;

import React from 'react';
import { Form, Modal } from 'antd';
import intl from 'utils/intl';
var DetailDrawer = (_dec = Form.create({
  fieldNameProp: null
}), _dec(_class = /*#__PURE__*/function (_React$PureComponent) {
  _inherits(DetailDrawer, _React$PureComponent);

  var _super = _createSuper(DetailDrawer);

  function DetailDrawer() {
    _classCallCheck(this, DetailDrawer);

    return _super.apply(this, arguments);
  }

  _createClass(DetailDrawer, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          _this$props$detailDat = _this$props.detailData,
          detailData = _this$props$detailDat === void 0 ? {} : _this$props$detailDat,
          title = _this$props.title,
          modalVisible = _this$props.modalVisible,
          other = _objectWithoutProperties(_this$props, _excluded);

      var executorAddress = detailData.executorAddress,
          glueTypeMeaning = detailData.glueTypeMeaning,
          executorParam = detailData.executorParam;
      return /*#__PURE__*/React.createElement(Modal, Object.assign({
        destroyOnClose: true,
        title: title,
        wrapClassName: "ant-modal-sidebar-right",
        transitionName: "move-right",
        visible: modalVisible
      }, other), /*#__PURE__*/React.createElement("div", null, intl.get('csdr.jobLog.model.jobLog.executorAddress').d('执行器地址'), ": ", executorAddress), /*#__PURE__*/React.createElement("div", null, intl.get('csdr.jobLog.model.jobLog.glueTypeMeaning').d('运行模式'), ": ", glueTypeMeaning), /*#__PURE__*/React.createElement("div", null, intl.get('csdr.jobLog.model.jobLog.executorParam').d('任务参数'), ": ", executorParam));
    }
  }]);

  return DetailDrawer;
}(React.PureComponent)) || _class);
export { DetailDrawer as default };